home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 66
/
Vol 66.iso
/
games
/
doodle_d.swf
/
scripts
/
frame_3
/
DoAction_2.as
next >
Wrap
Text File
|
2013-04-24
|
1KB
|
48 lines
lives = 0;
amountRecord = 0;
dra.onMouseDown = function()
{
ship.moveTo(_root.ship._xmouse,_root.ship._ymouse);
ship.lineStyle(2,"0x000000",100);
dra.onMouseMove = function()
{
if(Math.abs(_root._xmouse - ship._x) < 250 && Math.abs(_root._ymouse - ship._y) < 225)
{
ship.lineTo(_root.ship._xmouse,_root.ship._ymouse);
}
updateAfterEvent();
};
};
dra.onMouseUp = function()
{
dra.onMouseMove = null;
};
dra.onEnterFrame = function()
{
if(Key.isDown(32))
{
if(ship._height > 10 && ship._width > 10)
{
ship._width > 35;
while(ship._width > 35)
{
ship._yscale -= 0.1;
amountRecord += 0.1;
ship._xscale -= 0.1;
}
ship._height > 35;
while(ship._height > 35)
{
ship._xscale -= 0.1;
amountRecord += 0.1;
ship._yscale -= 0.1;
}
nextFrame();
}
}
if(Key.isDown(13))
{
ship.clear();
}
};